package ejemplo;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;

public class Profesiones extends Composite {
	private Text textNombre;
	private Text textComentarios;
	private Text textSueldo;

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public Profesiones(Composite parent, int style) {
		super(parent, style);
		
		Label lblNombre = new Label(this, SWT.NONE);
		lblNombre.setBounds(10, 10, 55, 15);
		lblNombre.setText("Nombre:");
		
		textNombre = new Text(this, SWT.BORDER);
		textNombre.setBounds(85, 10, 278, 21);
		
		Label lblComentarios = new Label(this, SWT.NONE);
		lblComentarios.setBounds(10, 93, 71, 21);
		lblComentarios.setText("Comentarios:");
		
		textComentarios = new Text(this, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);
		textComentarios.setBounds(85, 90, 278, 150);
		
		Label lblSueldo = new Label(this, SWT.NONE);
		lblSueldo.setBounds(10, 31, 55, 15);
		lblSueldo.setText("Sueldo: ");
		
		textSueldo = new Text(this, SWT.BORDER);
		textSueldo.setBounds(85, 37, 102, 21);
		
		Button btnSubmit = new Button(this, SWT.NONE);
		btnSubmit.setBounds(288, 265, 75, 25);
		btnSubmit.setText("Ok");

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
